Method Name |
Parameter |
Return Type |
Usage |
Example |
generateAccessibilityReportForCurrentPage |
title:final String |
JSONArray |
Generates Accessibility Report on the Current Page with all the Page Violation Rules |
Accessibility access = new Accessibility(BrowserDriver.getDriver());
access.generateAccessibilityReportForCurrentPage("FreecrmLoginPageReport"); |
generateOverallAccessibilityReport |
|
void |
Generates overall accessibility report using velocityEngine |
Accessibility access = new Accessibility(BrowserDriver.getDriver());
access.generateOverallAccessibilityReport(); |
reportAccessibilityViolations |
pageViolations:final PageViolations |
StringWriter |
Report accessibility violations method gets the pageViolations lists and reports it accordingly using VelocityEngine. |
StringWriter accessibilityWriter = new StringWriter();
AccessibilityReportEngine reportEngine = new AccessibilityReportEngine();
accessibilityWriter = reportEngine.reportAccessibilityViolations(pageViolations); |
generateRuleViolationsInDetail |
rulesViolation:List<RuleViolations>,URL:String,title:String |
void |
Generates rule violations in detail |
generateRuleViolationsInDetail(pageViolations.getViolationsList(), URL, pageViolations.getPageFolderName()); |
generateOverallAccessibilityReports |
|
void |
Generates overall accessibility reports using velocity engine |
AccessibilityReportEngine reportEngine = new AccessibilityReportEngine();
reportEngine.generateOverallAccessibilityReports(); |